﻿export default [
  {
    path: '/login',
    layout: false,
    name: 'login',
    hideInMenu: true,
    // hideInPanelTab: true,
    component: './Login',
  },
  {
    path: '/nav-card',
    layout: false,
    name: 'nav-card',
    hideInMenu: true,
    component: './WebNav',
  },
  {
    path: '/welcome',
    name: 'welcome',
    hideInMenu: true,
    // hideInPanelTab: true,
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/webnav',
    name: 'webnav',
    icon: 'global',
    routes: [
      {
        path: '/webnav',
        redirect: '/webnav/home',
      },
      {
        path: '/webnav/home',
        name: 'home',
        icon: 'home',
        component: './WebNav',
      },
      {
        path: '/webnav/list',
        access: 'canReadWebNav',
        icon: 'desktop',
        name: 'list',
        component: './WebNav/List',
      },
    ],
  },
  {
    path: '/iotsim',
    name: 'iotsim',
    icon: 'project',
    routes: [
      {
        path: '/iotsim',
        access: 'canReadIotSim',
        redirect: '/iotsim/statistic',
      },
      {
        path: '/iotsim/statistic',
        name: 'statistic',
        icon: 'home',
        access: 'canReadIotSim',
        component: './IotSim/Statistic',
      },
      {
        path: '/iotsim/list',
        name: 'list',
        icon: 'unorderedList',
        access: 'canReadIotSim',
        component: './IotSim',
      },
      {
        path: '/iotsim/discard',
        name: 'discard',
        icon: 'delete',
        access: 'canReadIotSim',
        component: './IotSim/Discard',
      },
      {
        path: '/iotsim/open-query',
        name: 'open-query',
        icon: 'search',
        access: 'canReadIotSim',
        component: './IotSim/OpenQuery',
      },
    ],
  },
  {
    path: '/logistics',
    name: 'logistics',
    icon: 'project',
    access: 'canReadLogistics',
    routes: [
      {
        path: '/logistics',
        redirect: '/logistics/Count',
      },
      // {
      //   path: '/logistics/Price',
      //   // access: 'canReadIotSim',
      //   icon: 'AccountBookOutlined',
      //   name: 'price',
      //   component: './logistics/Price',
      // },
      // {
      //   path: '/logistics/Show',
      //   // access: 'canReadIotSim',
      //   icon: 'AlignLeftOutlined',
      //   name: 'show',
      //   component: './logistics/CountShow',
      // },
      {
        path: '/logistics/Config',
        name: 'config',
        icon: 'UnorderedListOutlined',
        component: './newLogistics/config',
      },
      {
        path: '/logistics/Search',
        name: 'search',
        icon: 'DatabaseOutlined',
        component: './newLogistics/search',
      },
      {
        path: '/logistics/Count',
        name: 'count',
        icon: 'AccountBookOutlined',
        component: './newLogistics/count',
      },
    ],
  },
  {
    path: '/system-config',
    name: 'system-config',
    icon: 'setting',
    routes: [
      // {
      //   path: '/system-config/',
      //   hideInPanelTab: true,
      // },
      {
        path: '/system-config/',
        redirect: '/system-config/account',
      },
      {
        path: '/system-config/system-warning',
        name: 'system-warning',
        icon: 'warning',
        access: 'canReadSystemWarning',
        routes: [
          {
            path: '/system-config/system-warning/rule',
            name: '规则列表',
            component: './SystemWarning/Rule',
          },
          {
            path: '/system-config/system-warning/dingrobot',
            name: '钉钉机器人',
            component: './SystemWarning/DingRobot',
          },
          {
            path: '/system-config/system-warning/history',
            name: '告警历史记录',
            component: './SystemWarning/History',
          },
        ],
      },
      {
        path: '/system-config/user-list',
        name: 'user-list',
        icon: 'user',
        access: 'canReadSystemUser',
        component: './SystemUser',
      },
      {
        path: '/system-config/system-log',
        name: 'system-log',
        icon: 'solution',
        access: 'canReadSystemLog',
        component: './SystemLog',
      },
      {
        path: '/system-config/account',
        name: 'account',
        icon: 'user',
        component: './Account',
      },
    ],
  },

  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
